# Maintainer: Thomas Aldrian <aldrian.thom@proton.me>
pkgname=gdm-settings
pkgver=4.3
pkgrel=1
pkgdesc="A settings app for Gnome's Login Manager, GDM"
url="https://github.com/gdm-settings/gdm-settings"
arch="noarch !armhf !s390x" # Blocked by gdm
license="AGPL-3.0-or-later"
depends="
	gdm
	glib
	libadwaita
	polkit
	py3-gobject3
	"
makedepends="
	blueprint-compiler
	desktop-file-utils
	glib-dev
	gobject-introspection
	libadwaita-dev
	meson
	py3-gobject3-dev
	"
checkdepends="appstream"
subpackages="$pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/gdm-settings/gdm-settings/archive/refs/tags/v$pkgver.tar.gz"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
cc586eafdef9f61d90b7f8ae4fbfdf0636e55893ec8a73f989ce66d45d7c6a4c56e8c32b95dbf9bdcfecd7e911815f2f1cc22b7581841f4418991fbf1f4ef248  gdm-settings-4.3.tar.gz
"
